

interface ListReq {
  pageNo: number
  pageSize: number
  searchVal?: string
}

interface GroupNameReq {
  groupName: string
}

interface IdReq {
  id: number
}

interface GroupReq extends GroupNameReq {
  alertInstanceIds: string
  description?: string
}

interface AlarmGroupItem {
  id: number
  groupName: string
  alertInstanceIds: string
  description: string
  createTime: string
  updateTime: string
  createUserId: number
}

interface AlarmGroupRes {
  totalList: AlarmGroupItem[]
  total: number
  totalPage: number
  pageSize: number
  currentPage: number
  start: number
}

export { ListReq, GroupNameReq, IdReq, GroupReq, AlarmGroupItem, AlarmGroupRes }
